package beans;

/**
 * @author: omybug
 * @date: 18/10/8 17:44
 */
public class Car {

    private String name;

    protected Integer price;

    public Car(){
        System.out.println("Car");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    void test(){
        System.out.println("xxx");
    }

    public void drive(){
        System.out.println(this.name + " drive!");
    }

}
